package com.mapper;

import com.entity.Monster;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 该接口用于声明操作monster表的方法
 * 这些方法可以通过注解或xml文件来实现
 */
public interface MonsterMapper {
    public List<Monster> findMonsterByAge(@Param("age") Integer age);

    //根据id和名字来查询结果
    public List<Monster> findMonsterByIdAndName(Monster monster);

    public List<Monster> findMonsterByIdORName_choose(Map<String, Object> map);

    public List<Monster> findMonsterById_foreach(Map<String, Object> map);

    public List<Monster> findMonsterByName_trim(Map<String, Object> map);

    public void updateMonster_set(Map<String, Object> map);
}
